<template>
  <div>
    <el-table style="width: 100%" :data="tableData">
      <el-table-column label="报名号" prop="no" width="100"/>
      <el-table-column label="姓名" prop="name"  width="100"/>
      <el-table-column label="专业" prop="major"  width="200"/>
      <el-table-column label="身份证号" prop="cardno"  width="250"/>
      <el-table-column label="手机号" prop="phone"  width="200"/>
      <el-table-column label="状态" prop="status"  width="200"/>
      <el-table-column align="right">
        <template #header>
          <el-input v-model="search" placeholder="请输入查询内容" class="input-with-select">
            <template #prepend>
              <el-select v-model="select" placeholder="请选择" style="width: 150px">
                <el-option label="姓名" value="1"></el-option>
                <el-option label="报名号" value="2"></el-option>
                <el-option label="身份证号" value="3"></el-option>
                <el-option label="手机号" value="4"></el-option>
                <el-option label="缴费情况" value="5"></el-option>
              </el-select>
            </template>
            <template #append>
              <el-button icon="el-icon-search"></el-button>
            </template>
          </el-input>
        </template>
        <template #default="scope">
          <el-button size="mini" @click="handleEdit(scope.$index, scope.row)">报名详情</el-button>
          <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "StudentList",
  setup() {
    return {
      tableData: [
        {
          no: '1',
          name: '张三',
          major: '数控技术',
          cardno: '610123200212101562',
          phone: '13962358421',
          address: '陕西省汉中市南郑区大河坎镇',
          payable: 1800.00,
          payment: 0,
          status: 1
        }
      ]
    }
  },
  created() {
  },
  data() {
    return {
    }
  },
  methods: {
    handleEdit(index, row) {

    },
    handleDelete(index, row) {

    }
  }
}
</script>

<style scoped>
</style>